﻿//***********************************************************************
// Assembly         : phpmk
// Author           : 
// Created          : 04-12-2010
//
// Last Modified By : 
// Last Modified On : 04-12-2010
// Description      : 
//
// Copyright        : (c) Another-D-Mention Software. All rights reserved.
//***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Runtime.InteropServices;

namespace phpmk.ADM.Utils {
    internal static class Util {

        public static bool CopyToClipboard(String input) {
            try {
                Clipboard.SetDataObject(input, true);
                return true;
            } catch (ArgumentNullException ex) {
                Debug.Log(ex.Message);
                return false;
            } catch (ThreadStateException ex) {
                Debug.Log(ex.Message);
                return false;
            } catch (ExternalException ex) {
                Debug.Log(ex.Message);
                return false;
            }
        }

    }
}
